package com.dslcode.cloud.common.model.order;

import com.dslcode.cloud.common.model.BaseModel;
import com.dslcode.cloud.common.utils.StringUtil;
import lombok.Data;

/**
 * Created by dongsilin on 2017/9/21.
 */
@Data
public class OrderPay extends BaseModel {

    private String paySn;// 支付单号
    private Long buyerId;
    private Integer payState; // 0默认未支付1已支付(只有第三方支付接口通知到时才会更改此状态)
    private Integer deleteState;
    private String payTradeSn;//支付公司返回的支付流水号

    public OrderPay() {
    }

    public OrderPay(Long buyerId) {
        this.paySn = StringUtil.append2String(System.currentTimeMillis(), buyerId);
        this.buyerId = buyerId;
        this.payState = 0;
        this.deleteState = 0;
        this.payTradeSn = "";
    }
}
